package com.liyy.platform.other.pattern.singleton;

public class test {
	enum AccountType
	{
	    SAVING;
	    //每个枚举变量只会执行一次构造方法
	    private AccountType()
	    {
	        System.out.println(this.name()+"加载...");
	    }
	}
	    public static void main(String[]args)
	    {
	        System.out.println(AccountType.SAVING);
	        System.out.println(AccountType.SAVING);
	        System.out.println(AccountType.SAVING);
	    }
}
